﻿using System;

// 补充了 接口成员的 显式实现

namespace _34._1_csharp_面向对象_event_interface
{
    public class Girl : IEatable3,IEatable2
    {
        public event Action OnCookFinished;
        
        event Action onCookFinished;
        event Action IEatable3.OnCookFinished
        {
            add 
            {
                onCookFinished += value;
                Console.WriteLine(222);
            }
            remove
            {
                onCookFinished -= value;
                Console.WriteLine(333);
            }
        }

        public void Report() 
        {
            OnCookFinished?.Invoke();
            onCookFinished?.Invoke();
        }

    }





}
